package com.xf.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collection;
import java.util.List;

import com.xf.common.core.entity.dmp.DmpCert;
import com.xf.mapper.DmpCertMapper;
import com.xf.service.DmpCertService;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author JoeyLiu
 * @create 2022-03-29 14:57
 */
@Slf4j
@Service

public class DmpCertServiceImpl extends  ServiceImpl<DmpCertMapper, DmpCert> implements DmpCertService {

    @Resource
    private DmpCertMapper dmpCertMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return dmpCertMapper.deleteByPrimaryKey(id);
    }

    @Override
    public DmpCert selectByPrimaryKey(String id) {
        return dmpCertMapper.selectByPrimaryKey(id);
    }


    @Override
    public Boolean updateBatchSelective(List<DmpCert> list) {
        return dmpCertMapper.updateBatchSelective(list);
    }

    @Override
    public Boolean batchInsert(List<DmpCert> list) {
        return dmpCertMapper.batchInsertOrUpdate(list);
    }

    @Override
    public Boolean insertOrUpdateSelective(DmpCert record) {
        return dmpCertMapper.insertOrUpdateSelective(record);
    }

}
